import request from "@/utils/request";
import defaultSettings from "@/settings";

export const apiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};
export const details104ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/searchA104`,
}

export const details307ApiUrlConfig = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/searchA307`,
}
//往账大小额复核查询明细
export function detail(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/detail`,
    method: "get",
    params,
  });
}

export function approve(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/approve${code}`,
    method: "post",
    data,
  });
}

export function reject(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/HvpsAndBepsCreditOperationsReview/reject${code}`,
    method: "post",
    data,
  });
}

// 小额借记复核列表
export const apiUrlConfigCheck2 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

// 小额借记复合详细
export function detailCheck2(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/detail`,
    method: "get",
    params,
  });
}

export function approve2(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/approve${code}`,
    method: "post",
    data,
  });
}

export function reject2(data,code) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/reject${code}`,
    method: "post",
    data,
  });
}
export const reqConfigB307 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/searchB307`,
}

export const reqConfigB309 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/searchB309`,
}

export const reqConfigB104 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseReview/BepsDebitsOperationsReview/searchB104`,
}




export const apiUrlConfig3 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/instantTransfer/InstantTransferReceiptApprove/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/instantTransfer/InstantTransferReceiptApprove/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

//即时转账业务回执审核明细
export function detailQuery(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/instantTransfer/InstantTransferReceiptApprove/detail`,
    method: "get",
    params,
  });
}

export function approve3(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/instantTransfer/InstantTransferReceiptApprove/approve`,
    method: "post",
    data,
  });
}

export function reject3(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/instantTransfer/InstantTransferReceiptApprove/reject`,
    method: "post",
    data,
  });
}

//大额延迟结算回执审核
export const apiUrlConfig4 = {
  queryUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHvpsAndBepsDelayedSettle/HvpsAndBepsDelayedSettleReceiptEntryApprove/search`,
  exportUrl: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHvpsAndBepsDelayedSettle/HvpsAndBepsDelayedSettleReceiptEntryApprove/search`,
  delUrl: `${defaultSettings.ctx.cnapsApp} `,
};

export function detail117(params) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHvpsAndBepsDelayedSettle/HvpsAndBepsDelayedSettleReceiptEntryApprove/detail`,
    method: "get",
    params,
  });
}

export function approve4(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHvpsAndBepsDelayedSettle/HvpsAndBepsDelayedSettleReceiptEntryApprove/approve90117`,
    method: "post",
    data,
  });
}

export function reject4(data) {
  return request({
    url: `${defaultSettings.ctx.cnapsApp}/hvpsBepsPayment/hvpsBepsBase/baseHvpsAndBepsDelayedSettle/HvpsAndBepsDelayedSettleReceiptEntryApprove/reject90117`,
    method: "post",
    data,
  });
}
